.class Lrexsee/dialog/RexseePopupWindow$2;
.super Ljava/lang/Object;
.source "RexseePopupWindow.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/dialog/RexseePopupWindow;->show(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/dialog/RexseePopupWindow;

.field private final synthetic val$clickCallback:Ljava/lang/String;

.field private final synthetic val$dialogId:Ljava/lang/String;

.field private final synthetic val$style:Ljava/lang/String;

.field private final synthetic val$url:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/dialog/RexseePopupWindow;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/dialog/RexseePopupWindow$2;->this$0:Lrexsee/dialog/RexseePopupWindow;

    iput-object p2, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$clickCallback:Ljava/lang/String;

    iput-object p3, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$url:Ljava/lang/String;

    iput-object p4, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$dialogId:Ljava/lang/String;

    iput-object p5, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$style:Ljava/lang/String;

    .line 81
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lrexsee/dialog/RexseePopupWindow$2;)Lrexsee/dialog/RexseePopupWindow;
    .locals 1

    .prologue
    .line 81
    iget-object v0, p0, Lrexsee/dialog/RexseePopupWindow$2;->this$0:Lrexsee/dialog/RexseePopupWindow;

    return-object v0
.end method


# virtual methods
.method public run()V
    .locals 8

    .prologue
    .line 85
    const/4 v5, 0x0

    .line 86
    .local v5, "runnable":Ljava/lang/Runnable;
    :try_start_0
    iget-object v1, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$clickCallback:Ljava/lang/String;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$clickCallback:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 87
    new-instance v7, Lrexsee/dialog/RexseePopupWindow$2$1;

    iget-object v1, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$clickCallback:Ljava/lang/String;

    invoke-direct {v7, p0, v1}, Lrexsee/dialog/RexseePopupWindow$2$1;-><init>(Lrexsee/dialog/RexseePopupWindow$2;Ljava/lang/String;)V

    .end local v5    # "runnable":Ljava/lang/Runnable;
    .local v7, "runnable":Ljava/lang/Runnable;
    move-object v5, v7

    .line 94
    .end local v7    # "runnable":Ljava/lang/Runnable;
    .restart local v5    # "runnable":Ljava/lang/Runnable;
    :cond_0
    iget-object v1, p0, Lrexsee/dialog/RexseePopupWindow$2;->this$0:Lrexsee/dialog/RexseePopupWindow;

    # getter for: Lrexsee/dialog/RexseePopupWindow;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/dialog/RexseePopupWindow;->access$1(Lrexsee/dialog/RexseePopupWindow;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v1, v1, Lrexsee/core/browser/Browser;->urlListeners:Lrexsee/core/browser/RexseeUrl;

    iget-object v2, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$url:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lrexsee/core/browser/RexseeUrl;->getAbsoluteUrl(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 95
    .local v3, "realUrl":Ljava/lang/String;
    new-instance v0, Lrexsee/dialog/PopupWindow;

    iget-object v1, p0, Lrexsee/dialog/RexseePopupWindow$2;->this$0:Lrexsee/dialog/RexseePopupWindow;

    # getter for: Lrexsee/dialog/RexseePopupWindow;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/dialog/RexseePopupWindow;->access$1(Lrexsee/dialog/RexseePopupWindow;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v2, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$dialogId:Ljava/lang/String;

    iget-object v4, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$style:Ljava/lang/String;

    invoke-direct/range {v0 .. v5}, Lrexsee/dialog/PopupWindow;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 96
    .local v0, "dialog":Lrexsee/dialog/PopupWindow;
    iget-object v1, p0, Lrexsee/dialog/RexseePopupWindow$2;->this$0:Lrexsee/dialog/RexseePopupWindow;

    # getter for: Lrexsee/dialog/RexseePopupWindow;->mMap:Ljava/util/HashMap;
    invoke-static {v1}, Lrexsee/dialog/RexseePopupWindow;->access$0(Lrexsee/dialog/RexseePopupWindow;)Ljava/util/HashMap;

    move-result-object v1

    iget-object v2, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$dialogId:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 97
    new-instance v1, Lrexsee/dialog/RexseePopupWindow$2$2;

    iget-object v2, p0, Lrexsee/dialog/RexseePopupWindow$2;->val$dialogId:Ljava/lang/String;

    invoke-direct {v1, p0, v2}, Lrexsee/dialog/RexseePopupWindow$2$2;-><init>(Lrexsee/dialog/RexseePopupWindow$2;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Lrexsee/dialog/PopupWindow;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 105
    invoke-virtual {v0}, Lrexsee/dialog/PopupWindow;->start()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 109
    .end local v0    # "dialog":Lrexsee/dialog/PopupWindow;
    .end local v3    # "realUrl":Ljava/lang/String;
    :goto_0
    iget-object v1, p0, Lrexsee/dialog/RexseePopupWindow$2;->this$0:Lrexsee/dialog/RexseePopupWindow;

    const/4 v2, 0x1

    invoke-static {v1, v2}, Lrexsee/dialog/RexseePopupWindow;->access$2(Lrexsee/dialog/RexseePopupWindow;Z)V

    .line 110
    return-void

    .line 106
    :catch_0
    move-exception v1

    move-object v6, v1

    .line 107
    .local v6, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/dialog/RexseePopupWindow$2;->this$0:Lrexsee/dialog/RexseePopupWindow;

    # getter for: Lrexsee/dialog/RexseePopupWindow;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/dialog/RexseePopupWindow;->access$1(Lrexsee/dialog/RexseePopupWindow;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v2, p0, Lrexsee/dialog/RexseePopupWindow$2;->this$0:Lrexsee/dialog/RexseePopupWindow;

    invoke-virtual {v2}, Lrexsee/dialog/RexseePopupWindow;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v6}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method
